<?php

namespace Common\Service;


/** 
 * 弹幕
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */
Class BarrageService extends BaseService
{

	// 状态
	const STATUS_PEDDING = 0;	// 审核 pedding
	const STATUS_PASS 	 = 1;	// 展示 pass
	const STATUS_DEL  	 = -1;  // 删除 delete

	protected $_auto = array(
        array('uid', 'intval', self::MODEL_BOTH, 'function'),
        array('text', 'htmlspecialchars', self::MODEL_BOTH, 'function'),
        array('create_time', NOW_TIME, self::MODEL_INSERT),
        array('status', self::STATUS_PASS, self::MODEL_BOTH),
        array('status', 'intval', self::MODEL_BOTH, 'function'),
        array('aliveTime', 'intval', self::MODEL_BOTH, 'function'),
        array('startTime', 'intval', self::MODEL_BOTH, 'function'),
        array('video_id', 'intval', self::MODEL_BOTH, 'function'),
        array('zan', 0, self::MODEL_INSERT),
        array('zan', 'intval', self::MODEL_BOTH, 'function'),
    );
}